package com.liu.spit.dao;

import com.liu.spit.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;



/**
 * 吐槽的数据访问层
 * @author  shi860715@126.com
 *
 */
public interface SpitDao extends MongoRepository<Spit,String> {


    Page<Spit> findSpitsByParentid(String parentid, Pageable pageable);

}
